// pages/income/tabs/tabs.js
Component({

  /**
   * 页面的初始数据
   */
  data: {
    current: 0,
    indentity: ''
  },

  properties: {
    list: Array
  },

  methods: {
    onTabChange: function (e) {
      const { currentTarget: { dataset: { index } } } = e

      this.setData({
        current: index
      })

      this.triggerEvent('change', { index })
    }
  },

  ready: function() {
    const indentity = wx.getStorageSync('indentity')

    this.setData({
      indentity
    })
  }

})